libostree: Fix potential use of uninitialised memory in progress API
authorPhilip Withnall <withnall@endlessm.com>
Fri, 5 May 2017 14:16:46 +0000 (15:16 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 5 May 2017 14:58:03 +0000 (14:58 +0000)
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #835
Approved by: cgwalters

src/libostree/ostree-async-progress.c

index 95556814df74322d157eafd0973f99b54ad3ce62..b879559e9393042837a66cdbb9fb36b7c531369a 100644 (file)
@@ -331,6 +331,8 @@ ostree_async_progress_set (OstreeAsyncProgress *self,
   if (self->dead)
     goto out;
 
+  changed = FALSE;
+
   va_start (ap, self);
 
   for (key = va_arg (ap, const char *), format_string = va_arg (ap, const char *);